package com.yy.main.app.mapper;

import com.yy.pojo.base.TMenuMessage;
import com.yy.pojo.base.TMenuMessageExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Resource(name = "dataSource")
@Repository
public interface TMenuMessageMapper {
    long countByExample(TMenuMessageExample example);

    int deleteByExample(TMenuMessageExample example);

    int deleteByPrimaryKey(@Param("id") String id, @Param("menu_id") String menu_id, @Param("message_id") String message_id);

    int insert(TMenuMessage record);

    int insertSelective(TMenuMessage record);

    List<TMenuMessage> selectByExample(TMenuMessageExample example);

    TMenuMessage selectByPrimaryKey(@Param("id") String id, @Param("menu_id") String menu_id, @Param("message_id") String message_id);

    int updateByExampleSelective(@Param("record") TMenuMessage record, @Param("example") TMenuMessageExample example);

    int updateByExample(@Param("record") TMenuMessage record, @Param("example") TMenuMessageExample example);

    int updateByPrimaryKeySelective(TMenuMessage record);

    int updateByPrimaryKey(TMenuMessage record);
}